package com.gegewa.observer;

public class Client {

    public static void main(String[] args) {
        Broadcast broadcast = new Broadcast();
        FemalePassenger femalePassenger = new FemalePassenger(broadcast);
        MalePassenger malePassenger = new MalePassenger(broadcast);
        broadcast.add(femalePassenger);
        broadcast.add(malePassenger);
        broadcast.setStationName("Zhong Shan park");
        broadcast.notifyPassenger();
    }

}
